<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="head.jsp"%>

<!--添加住户页-->
<div class="div_addresident">
    <form method="post" action="<%=request.getContextPath()%>/orderForm?type=addResident" class="addresident_form" id="add_form">
        <p>入住登记</p>
        <div class="addresident_div">
        <span>房型:</span>
    <select name="houseTypeId" id="taddresident_div_select" required>
        <c:if test="${showList != null}">
            <option value="0">选择房型</option>
            <c:forEach items="${showList}" var="show">
                <option value="${show.id}" <c:if test="${show.id == houseTypeId}">selected</c:if>>${show.houseType}</option>
            </c:forEach>
        </c:if>
    </select>
        <span>状态:</span>
    <select name="condition" id="addresident_div_select1" required>
        <option value="0">状态</option>
        <option value="1">入住</option>
        <option value="2">预约</option>
    </select>
        <span>房间号:</span>
    <select name="roomNumber" id="addresident_div_select2" required>

    </select>
         <span>居住人数:</span>
    <select name="personNum" id="addresident_div_select3" required>
        <option value="1">1</option>
        <option value="2">2</option>
    </select>
        </div>
        <input id="appPath" type="hidden" value="<%=request.getContextPath()%>">
        <p class="addresident_form_p">
            <span>姓名:</span>
            <input type="text" name="manageName" id="add_manageName" class="form_p_input" required>
            <span id="add_manageName_span"></span>
        </p>
        <p class="addresident_form_p">
            <span>手机号:</span>
            <input type="text" name="mobilePhone" id="add_mobilePhone" class="form_p_input" required>
            <span id="add_mobilePhone_span"></span>
        </p>
        <p class="addresident_form_p">
            <span>身份证号:</span>
            <input type="text" name="identityCard" id="add_identityCard" class="form_p_input" required>
            <span id="add_identityCard_span"></span>
        </p>
        <p class="addresident_form_p">
            <span>入住时间:</span>
            <input type="date" name="checkInDate" id="add_checkInDate" class="form_p_input" required>
            <span id="add_checkInDate_span"></span>
            <span>退房时间:</span>
            <input type="date" name="checkOutDate" id="add_checkOutDate" class="form_p_input" required>
            <span id="add_checkOutDate_span"></span>
        </p>
        <p class="addresident_form_p">
            <span>备注:</span>
            <input type="text" name="remark" id="add_remark" class="form_p_input">
            <span id="add_remark_span"></span>
        </p>
        <p class="addresident_form_p">
            <span>订单号:</span>
            <input type="text" name="password" readonly="readonly" id="add_password" class="form_p_input" required>
            <span id="add_password_span"></span>
        </p>
        <p class="addresident_form_p">
            <span>金额:</span>
            <input type="text" name="price" readonly="readonly" id="add_price" class="form_p_input" required>
            <span id="add_price_span"></span>
        </p>
        <input type="submit" class="add_form_button" value="办理">
        <input type="reset" class="add_form_button" value="重置">
        <input type="button" class="add_form_button" onclick="window.location.href='<%=request.getContextPath()%>/orderForm'" value="返回">
    </form>
</div>
</body>
</html>
